home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / fortran / libf2c-0.000 / libf2c-0 / libf2c / make.shared < prev    next >
Encoding:
Text File  |  1995-01-14  |  935 b   |  24 lines

  1. #!/bin/sh
  2. #
  3. # Rob Hooft (hooft@chem.ruu.nl) Oct 23, 1993
  4. # Modified Jan 15, 1994 using hints from Olaf Flebbe
  5. # Keep it compatible as long as I can....
  6. #
  7. export JUMP_DIR=`pwd`/jump
  8. export JUMP_LIB=libf2c
  9. (cd libI77 && make CC="gcc -B/usr/dll/jump/" CFLAGS="-O6 -fomit-frame-pointer -DNON_UNIX_STDIO -D_POSIX_SOURCE")
  10. (cd libF77 && make CC="gcc -B/usr/dll/jump/" CFLAGS="-O6 -fomit-frame-pointer -DNON_UNIX_STDIO -D_POSIX_SOURCE")
  11. PATH=/usr/dll/bin:/usr/bin:/bin
  12. mkimage -l /lib/libf2c -v 0.11 -a 0x60600000 -d 0x60680000 -g 4096 -j 0x4000 \
  13.     -- lib?77/[a-ln-z]*.o /usr/lib/libm.a `gcc --print-libgcc-file-name` \
  14.             -lc `gcc --print-libgcc-file-name`
  15. mkstubs -l /lib/libf2c -v 0.11 -a 0x60600000 -d 0x60680000 -g 4096 -j 0x4000 \
  16.     -- libf2c
  17. ar r libf2c.sa libF77/main.o
  18. ar d libf2c.sa __.SYMDEF
  19. verify-shlib -l libf2c.so.0.11 libf2c.sa
  20. strip libf2c.so.0.11
  21. ranlib libf2c.sa
  22. f2c hello.f
  23. cc -s -N -o hello hello.c libf2c.sa -lm
  24.